﻿<%@ Page Language="C#" ValidateRequest="false" MasterPageFile="~/membercenter/membercenter.Master" AutoEventWireup="true" CodeBehind="product_edit.aspx.cs" Inherits="YXShop.Web.membercenter.shop.shop_product.product_edit" %>

<%@ Register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../../../admin/style/admin.css" rel="stylesheet" type="text/css" />
    <link href="../../../style/validator.css" rel="stylesheet" type="text/css" />
    <script src="../../../scripts/validate.js" type="text/javascript"></script>
    <script src="../../../scripts/prototype.js" type="text/javascript"></script>
    <script src="../../../admin/scripts/public.js" type="text/javascript"></script>
    <link href="../../../admin/style/dtree.css" rel="stylesheet" type="text/css" />
    <script src="../../../scripts/calendar.js" type="text/javascript"></script>
    <script src="../../../admin/scripts/dtree.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
    //选择一级分类后的联动效果
function firstarry(id)
 {
    var param = "Option=first&ID="+ id;
    var options={
        method:'post',
        parameters:param,
        onComplete:
        function(transport)
	    {
	        var retv=transport.responseText;
		    document.getElementById("secondClass").innerHTML = retv;
            document.getElementById("thirdClass").innerHTML = "<select size='18' style='width: 180px'></select>";
            document.getElementById("fourClass").innerHTML = "<select size='18' style='width: 180px'></select>";
		}     
	  }
	new  Ajax.Request('product_edit.aspx',options);
}
//选择二级分类后的联动效果
function Secondarry(id) {
var param = "Option=Secondarry&ID="+ id;
    var options={
        method:'post',
        parameters:param,
        onComplete:
        function(transport)
	    {
	      var retv=transport.responseText;
		  document.getElementById("thirdClass").innerHTML = retv;
          document.getElementById("fourClass").innerHTML = "<select size='18' style='width: 180px'></select>";
		}     
	  }
	new  Ajax.Request('product_edit.aspx',options);
}
//选择三级分类后的联动效果
function thirdarry(id) {
var param = "Option=thirdarry&ID="+ id;
    var options={
        method:'post',
        parameters:param,
        onComplete:
        function(transport)
	    {
	      var retv=transport.responseText;
		 document.getElementById("fourClass").innerHTML = retv;
		}     
	  }
	new  Ajax.Request('product_edit.aspx',options);
}
function OptionValue(ClassID) 
{
    $("<%=hfProductClassID.ClientID %>").value = ClassID; //使用隐藏域记录下商品分类ID，以便商品添加时取值
    var param = "Option=Vali&ID="+ ClassID;
    var options={
        method:'post',
        parameters:param,
        onComplete:
        function(transport)
	    {
              var retv=transport.responseText;
              if (retv == "false") 
              {
                  LoadBrand(ClassID);
                  LoadProperty(ClassID);
                  document.getElementById("butNext").disabled = false;
              }
              else 
              {
                  document.getElementById("butNext").disabled =true;
              }
		}     
	  }
	new  Ajax.Request('product_edit.aspx',options);
}
function LoadBrand(CID)
{
    var param = "Option=Brand&ID="+ CID;
    var options={
    method:'post',
    parameters:param,
    onComplete:
    function(transport)
    {
          var retv=transport.responseText;
          document.getElementById("divBrand").innerHTML=retv;
	}     
  }
	new  Ajax.Request('product_edit.aspx',options);
}
function LoadProperty(CID)
{
    var param = "Option=Property&ID="+ CID;
    var options={
    method:'post',
    parameters:param,
    onComplete:
    function(transport)
    {
          var retv=transport.responseText;
          document.getElementById("divProperty").innerHTML=retv;
	}     
  }
	new  Ajax.Request('product_edit.aspx',options);
}
function NextShow()
{
    document.getElementById("spanNext").style.display="none";
    document.getElementById("spanSave").style.display="";
    document.getElementById("spanNextBottom").style.display="none";
    document.getElementById("spanSaveBottom").style.display="";
    document.getElementById("ReportViewer").style.display="";
    document.getElementById("tab8").style.display="none";
    document.getElementById("tab0").style.display="";
}
//当选择不同的出售方式时，显示与隐藏积分价格行和商城价行
function ChangetrPro_IntegralPrice(selectedValue)
{
    var trI=document.getElementById("<%=trIntegral.ClientID %>");//积分价格行
    var trP=document.getElementById("<%=trShopPrice.ClientID %>");//商城价格行
    if (selectedValue=="1")
    {
        trI.style.display="none";  
        trP.style.display="block";         
    }
    else if (selectedValue=="2")
    {
        trI.style.display="block";  
        trP.style.display="none"; 
    }
    else
    {
        trI.style.display="block";  
        trP.style.display="block"; 
    }
}

function ShowInfo(tabid,num)
{
    var tab;
    for(var i=0;i<num;i++)
    {
        tab=$("tab"+i);
        if(i==tabid)
        {
            tab.style.display='block';
        }
        else
        {
            tab.style.display='none';
        }
        if(tabid==8)
        {
           document.getElementById("ReportViewer").style.display="none";
           document.getElementById("spanNext").style.display="";
           document.getElementById("spanSave").style.display="none";
           document.getElementById("spanNextBottom").style.display="";
           document.getElementById("spanSaveBottom").style.display="none";
        }
    }
}
/*自动生成缩略图*/
function chengeBreviary()
{
    document.getElementById("<%=fuSmallImages.ClientID%>").disabled=(document.getElementById("<%=cbBreviary.ClientID%>").checked)?"disabled":"";
}
/*添加相片*/
function addFile()
{   
    var str = ' <table  class="form_table_input" border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td><input type="file" name="File" runat="server" /></td><td>描述：<input name="description" type="text" value="" maxlength="200" /></td></tr></table>'
    document.getElementById("MyFile").insertAdjacentHTML("beforeEnd",str);   
}   
function DelProAlbum(id)
{
    var param = "Option=delAlbum&ID="+ id;
    var options={
        method:'post',
        parameters:param,
        onComplete:
        function(transport)
	    {
             var retv=transport.responseText;
             if(retv=="ok")
             {
               window.location.reload();
             }
		}     
	  }
	new  Ajax.Request('product_edit.aspx',options);
}
/*相关商品搜索*/
function CheckProduct(Name)
{
    if(Name=="")
    {
        return false;
    }
    var param = "Option=SearchProduct&Name="+ Name;
    var options={
        method:'post',
        parameters:param,
        onComplete:
        function(transport)
	    {
             var retv=transport.responseText;
             document.getElementById("divRelatingProID").innerHTML=retv;
		}     
	  }
	new  Ajax.Request('product_edit.aspx',options);
}
//添加选中的项目
function AddItem(sel,seled)
{   
   var selectItemID=document.getElementById(sel).options.selectedIndex;
   var selectItemValue=document.getElementById(sel).options;
   var Selected=document.getElementById(seled);
   
   if  (selectItemID!=0&&selectItemID!=-1)
   {        
        for(var i = 0,j=0; i < selectItemValue.length,j<selectItemValue.length; i++) 
        {
          if(selectItemValue[i].selected)
           {
                var exist=false;
                for(var k = 0; k < Selected.options.length; k++) 
                {
                    if(Selected.options[k].value == selectItemValue[i].value) 
                    {
                        exist=true;
                        break;
                    }
                }
                if  (exist==false)
                {  
                    Selected.options.add(new Option(selectItemValue[i].text, selectItemValue[i].value, true,true)); 
                    j++;
                }
            }
        }
   }
}
//全部添加
function AddAllItem(sel,seled)
{
    //备选项列表
    var selectItemValue=document.getElementById(sel).options;
    //已列表
    var Selected=document.getElementById(seled);
    for(var i = 1,j = 0; i < selectItemValue.length,j < selectItemValue.length; i++) 
    {           
        var exist=false;
        for(var k = 0; k < Selected.options.length; k++) 
        {
            if(Selected.options[k].value == selectItemValue[i].value) 
            {
                exist=true;
                break;
            }
        }
        if  (exist==false)
        {  
            Selected.options.add(new Option(selectItemValue[i].text, selectItemValue[i].value, true,true)); 
            j++;
        }
    }
}
//移除所选项
function DelItem(selName)
{
    var Selected=document.getElementById(selName).options;
    for(var i = 0; i < Selected.length; i++) 
    {        
        if(Selected[i].selected==true)
        {
            Selected.remove(i);
        }
    }
}

//移除所有已经选择好的项目
function DelAllItem(selName)
{
    var colls = [];       //对select标记options的引用
    var selectTag = document.getElementById(selName); //获取select标记        
    colls = selectTag.options; //获取引用
    if(colls.length > 0)
    {
         clearOptions(colls);
    }   
}

//清空options集合
function clearOptions(colls)
{
    var length = colls.length;
    for(var i=length-1;i>=0;i--)
    {
           colls.remove(i);
    }
}
/*相关文章*/
function CheckArticle(Name)
{
    if(Name=="")
    {
        return false;
    }
    var param = "Option=SearchAtricle&Name="+ Name;
    var options={
        method:'post',
        parameters:param,
        onComplete:
        function(transport)
	    {
             var retv=transport.responseText;
             document.getElementById("divRelatingArticldeID").innerHTML=retv;
		}     
	  }
	new  Ajax.Request('product_edit.aspx',options);
}

        var filelist=new Array();
        var objectC;
        function GetFile(control)
        {
            var y=control.offsetTop; 
            var x=control.offsetLeft; 
             
            objectC=control;
            while(control=control.offsetParent)
            {
                y+=control.offsetTop; 
                x+=control.offsetLeft;
            } 
            obj=$("fileLists");
            obj.style.visibility="visible";
            obj.style.left=x;
            obj.style.top=y+22;
        }
        function GetFileUrl(value)
        {
            objectC.value=value;
            $("fileLists").style.visibility="hidden";
        } 
        
    </script>
    <script type="text/javascript">
        window.onload=function(){
            InitForm();
        }
</script>
    <style type="text/css">
    
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="pagetitle" runat="server">商品信息
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="pageinfo" runat="server">添加或编辑商品信息&nbsp;   
<asp:LinkButton ID="linkOk" runat="server" OnClick="Button1_Click">保存设置</asp:LinkButton>&nbsp;
<a href="javascript:window.history.back()">返 回</a>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="workspace" runat="server">
    <asp:Panel ID="pnlMsg" runat="server" Visible="false" CssClass="pnlReturnMessageErr">
        <asp:Literal ID="ltlMsg" runat="server"></asp:Literal>
    </asp:Panel>
    <table border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td id="TabTitle0" class="titlemouseover" onclick="ShowTabs(0,9)">基本信息</td>
            <td id="TabTitle1" class="tabtitle" onclick="ShowTabs(1,9)">其它信息</td>
            <td id="TabTitle2" class="tabtitle" onclick="ShowTabs(2,9)">介绍及图片</td>
            <td id="TabTitle3" class="tabtitle" onclick="ShowTabs(3,9)">商品相册</td>
            <td id="TabTitle4" class="tabtitle" onclick="ShowTabs(4,9)">扩展属性</td>
            <td id="TabTitle5" class="tabtitle" onclick="ShowTabs(5,9)">相关商品</td>
            <td id="TabTitle6" class="tabtitle" onclick="ShowTabs(6,9)">相关文章</td>
            <td id="TabTitle7" class="tabtitle" onclick="ShowTabs(7,9)">搜索优化</td>
            <td id="TabTitle8" class="tabtitle" onclick="ShowTabs(8,9)">商品分类</td>
        </tr>
    </table>
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td colspan="9" style="border: 1px solid #bac9c6;">
                <div id="tab8" style="display:none">
                     <table  class="form_table_input" border="0" width="100%" cellspacing="0" cellpadding="0">
                         <tr>
                             <td style="text-align:left;padding-right: 10px;color: #0099FF;font-weight: bold;" colspan="4">请选择商品分类：<asp:HiddenField ID="hfProductClassID" runat="server" />
                             </td>
                         </tr>
                         <tr>
                             <td style="width: 25%; text-align: center">
                                <div>
                                    <asp:Literal ID="lrafirstClass" runat="server"></asp:Literal>
                                </div>
                            </td>
                            <td style="width: 25%; text-align: center">
                                <div id="secondClass">
                                   <asp:Literal ID="lrasecondClass" runat="server"></asp:Literal>
                                </div>
                            </td>
                            <td style="width: 25%; text-align: center">
                                <div id="thirdClass">
                                    <asp:Literal ID="lrathirdClass" runat="server"></asp:Literal>
                                </div>
                            </td>
                            <td style="width: 25%; text-align: center">
                                <div id="fourClass">
                                    <asp:Literal ID="lratfourClass" runat="server"></asp:Literal>
                                </div>
                            </td>
                         </tr>
                    </table>
                </div>
                <!--基本信息-->
                <div id="tab0">
                    <table  class="form_table_input" border="0" width="100%" cellspacing="0" cellpadding="0">
                        <tr>
	                        <td class="form_table_input_info">商品名称：</td>
	                        <td>
                                <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                                <span style="color:Red">*</span>
                            </td>
	                        <td>
                                <asp:Panel ID="txtNameTip" runat="server">
                                </asp:Panel>
                            </td>
                        </tr>
                        <tr>
	                        <td class="form_table_input_info">关键字：
                            </td>
	                        <td>
                                <asp:TextBox ID="txtKey" runat="server"></asp:TextBox>
                            </td>
	                        <td>
                                <div class="msgNormal">提供给前台对商品进行搜索，多个关键字请用逗号分开，不允许空格</div>
                            </td>
                        </tr>
                        <tr>
	                        <td class="form_table_input_info">商品单位：</td>
	                        <td>
                                <asp:Literal ID="lraUint" runat="server"></asp:Literal>
                            </td>
                            <td><div class="msgNormal">选择商品单位</div></td>
                        </tr>
                        <tr>
	                        <td class="form_table_input_info">商品重量：
                            </td>
	                        <td>
                                <asp:TextBox ID="txtWeight" CssClass="short_input" runat="server"></asp:TextBox>
                                <asp:DropDownList runat="server" ID="ddlWeightUnit">
                                    <asp:ListItem Value="1">千克</asp:ListItem>
                                    <asp:ListItem Value="0">克</asp:ListItem>
                                </asp:DropDownList>
                            </td>
	                        <td>
                                <asp:Panel ID="txtWeightTip" runat="server">
                                </asp:Panel>
                            </td>
                        </tr>
                        <tr>
                             <td class="form_table_input_info">所属区域：</td>
                             <td>
                                 <asp:TextBox ID="txtArea" runat="server" ReadOnly></asp:TextBox>
                                 <asp:HiddenField runat="server" ID="hfid" />
                             </td>
                             <td>
                                 <div class="msgNormal">所属区域是对商品进行区域划分,指定商品信息在那一区域显示.</div>
                             </td>
                         </tr>
                         <tr>
	                        <td class="form_table_input_info">所属品牌：</td>
	                        <td>
	                            <div id="divBrand">
                                    <asp:Literal ID="ltaBrand" runat="server"></asp:Literal>
                                </div>
                            </td>
	                        <td>&nbsp;</td>
                        </tr>
                        
                        <tr>
	                        <td class="form_table_input_info">商品型号：</td>
	                        <td>
                                <asp:TextBox ID="txtModel" runat="server"></asp:TextBox>
                            </td>
	                        <td><div class="msgNormal">输入商品型号</div></td>
                        </tr>
                        
                        <tr>
	                        <td class="form_table_input_info">出售方式：
                            </td>
	                        <td>
                                <asp:DropDownList ID="ddlSaleType" runat="server" onchange="ChangetrPro_IntegralPrice(this.options[this.selectedIndex].value)">
                                    <asp:ListItem Value="1" Selected="True">只能使用现金购买</asp:ListItem>
                                    <asp:ListItem Value="2">只能使用积分购买</asp:ListItem>
                                    <asp:ListItem Value="3">现金或积分均可</asp:ListItem>
                                </asp:DropDownList>
                            </td>
	                        <td>
                                <div class="msgNormal">选择出售方式将在商城以该种方式进行出售</div>
                            </td>
                        </tr>
                        <tr id="trShopPrice" runat="server">
	                        <td class="form_table_input_info">商城价：</td>
	                        <td>
                                <asp:TextBox ID="txtShopPrice" CssClass="short_input" runat="server"></asp:TextBox>
                                <span style="color:Red">*</span>
                            </td>
	                        <td>
                                <asp:Panel ID="txtShopPriceTip" runat="server">
                                </asp:Panel>
                            </td>
                        </tr>
                        <tr id="trIntegral" style="display:none" runat="server">
	                        <td class="form_table_input_info">积分：</td>
	                        <td>
                                <asp:TextBox ID="txtIntegral" CssClass="short_input" runat="server"></asp:TextBox>
                            </td>
	                        <td>
                                <asp:Panel ID="txtIntegralTip" runat="server">
                                </asp:Panel>
                            </td>
                        </tr>
                        <asp:Literal ID="ltaMemberMank" runat="server"></asp:Literal>
                        <tr>
	                        <td class="form_table_input_info">商品库存：
                            </td>
	                        <td>
                                <asp:TextBox ID="txtStock" CssClass="short_input" runat="server"></asp:TextBox>
                                <span style="color:Red">*</span>
                            </td>
	                        <td>
                                <asp:Panel ID="txtStockTip" runat="server">
                                </asp:Panel>
                            </td>
                        </tr>
                        <tr>
	                        <td class="form_table_input_info">是否上架：</td>
	                        <td>
                                <asp:RadioButtonList ID="rblIsFiling" runat="server" RepeatDirection="Horizontal">
                                    <asp:ListItem Value="1" Text="上架"></asp:ListItem>
                                    <asp:ListItem Value="0" Text="下架" Selected="True"></asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
	                        <td>
                                <div class="msgNormal">处于下架的商品不会显示给前台用户，建议您上架所有商品.</div>
                            </td>
                        </tr>
                        <tr>
	                        <td class="form_table_input_info">上架数量：</td>
	                        <td>
                                <asp:TextBox ID="txtUpCount" CssClass="short_input" runat="server"></asp:TextBox>
                                <span style="color:Red">*</span>
                            </td>
	                        <td>
                                <asp:Panel ID="txtUpCountTip" runat="server">
                                </asp:Panel>
                            </td>
                        </tr>
                        <tr>
	                        <td class="form_table_input_info">商品状态：</td>
	                        <td>
                                 <asp:CheckBoxList ID="chklstState" runat="server" RepeatDirection="Horizontal" RepeatColumns="4">
                                    <asp:ListItem>推荐</asp:ListItem>
                                    <asp:ListItem>热卖</asp:ListItem>
                                    <asp:ListItem>特价</asp:ListItem>
                                    <asp:ListItem>活动</asp:ListItem>
                                    <asp:ListItem>最新</asp:ListItem>
                                    <asp:ListItem>首页</asp:ListItem>
                                    <asp:ListItem>精品</asp:ListItem>
                                </asp:CheckBoxList>
                            </td>
	                        <td>
                                <div class="msgNormal">控制商品在前台模块显示的标志.</div>
                            </td>
                        </tr>
                        <tr>
	                        <td class="form_table_input_info">商品标识：</td>
	                        <td>
                                 <asp:CheckBoxList ID="chklstMarking" runat="server" RepeatDirection="Horizontal" RepeatColumns="4">
                                    <asp:ListItem Value="0" Selected="True">普通</asp:ListItem>
                                    <asp:ListItem Value="1">团购</asp:ListItem>
                                    <asp:ListItem Value="2">拍卖</asp:ListItem>
                                    <asp:ListItem Value="3">点卡</asp:ListItem>
                                    <asp:ListItem Value="4">批发</asp:ListItem>
                                </asp:CheckBoxList>
                            </td>
	                        <td>
                                <div class="msgNormal">控制商品在前台模块显示的标志.</div>
                            </td>
                        </tr>
                    </table>
                </div>
                <div id="fileLists" class="dtree">
                                <asp:Literal ID="ltlFileList" runat="server"></asp:Literal>
                            </div>
                <!--其它信息-->
                <div id="tab1" style="display:none">
                    <table  class="form_table_input" border="0" width="100%" cellspacing="0" cellpadding="0">
                         <tr>
                             <td class="form_table_input_info">商品编码：</td>
                             <td>
                                 <asp:TextBox ID="txtNo" runat="server"></asp:TextBox>
                             </td>
                             <td>
                                 <div class="msgNormal">所属区域是对商品进行区域划分,指定商品信息在那一区域显示.</div>
                             </td>
                         </tr>
                          <tr>
	                    <td class="form_table_input_info">默认内容页模板：</td>
	                    <td>
                            <asp:TextBox ID="txtContentPageTemplate"  runat="server"></asp:TextBox>
                            
                        </td>
		                <td>
                            <asp:Panel ID="txtContentPageTemplateTip" runat="server">
                            </asp:Panel>
                        </td>
	                </tr>
                         
                        <tr>
	                        <td class="form_table_input_info">市场价：
                            </td>
	                        <td>
                                <asp:TextBox ID="txtMarketPrice" CssClass="short_input" runat="server"></asp:TextBox>
                            </td>
	                        <td>
                                <asp:Panel ID="txtMarketPriceTip" runat="server">
                                </asp:Panel>
                            </td>
                        </tr>
                        <tr>
                            <td class="form_table_input_info">商品成本价：</td>
	                        <td>
                                <asp:TextBox ID="txtCostPrice" CssClass="short_input" runat="server"></asp:TextBox>
                            </td>
	                        <td>
                                <asp:Panel ID="txtCostPriceTip" runat="server">
                                </asp:Panel>
                            </td>
                        </tr>
                        <tr>
	                        <td class="form_table_input_info">使用点券：
                            </td>
	                        <td>
                                <asp:TextBox ID="txtStamp" CssClass="short_input" runat="server"></asp:TextBox>
                            </td>
	                        <td>
                                <asp:Panel ID="txtStampTip" runat="server">
                                </asp:Panel>
                            </td>
                        </tr>
                        <tr>
                            <td class="form_table_input_info">指定时间自动上下架：</td>
                            <td> 
                                <asp:RadioButtonList runat="server" ID="rdolstIsAuto" RepeatDirection="Horizontal">
                                    <asp:ListItem Value="0" Selected="True">否</asp:ListItem>
                                    <asp:ListItem Value="1">是</asp:ListItem>
                                </asp:RadioButtonList></td>
                            <td>
                                <div class="msgNormal">选中是在前台系统自动按照所设置的时间展示</div>
                            </td>
                        </tr>
                        <tr>
	                        <td class="form_table_input_info">商品自动上架时间：
                            </td>
	                        <td>
                                <asp:TextBox ID="txtFilingTime" CssClass="date_input" runat="server"></asp:TextBox>
                            </td>
	                        <td>
                                <asp:Panel ID="txtFilingTimeTip" runat="server">
                                </asp:Panel>
                            </td>
                        </tr>
                        <tr>
	                        <td class="form_table_input_info">商品自动下架时间：
                            </td>
	                        <td>
                                <asp:TextBox ID="txtDownTime" CssClass="date_input" runat="server"></asp:TextBox>
                            </td>
	                        <td>
                                <asp:Panel ID="txtDownTimeTip" runat="server">
                                </asp:Panel>
                            </td>
                        </tr>
                        <tr>
	                        <td class="form_table_input_info">报警数量：
                            </td>
	                        <td>
                                <asp:TextBox ID="txtAlarmCount" CssClass="short_input" runat="server"></asp:TextBox>
                            </td>
	                        <td>
                                <asp:Panel ID="txtAlarmCountTip" runat="server">
                                </asp:Panel>
                            </td>
                        </tr>
                        <tr>
	                        <td class="form_table_input_info">赠送积分：
                            </td>
	                        <td>
                                <asp:TextBox ID="txtDonateInteg" CssClass="short_input" runat="server"></asp:TextBox>
                            </td>
	                        <td>
                                <asp:Panel ID="txtDonateIntegTip" runat="server">
                                </asp:Panel>
                            </td>
                        </tr>
                        
                        <tr>
	                        <td class="form_table_input_info">商品查看次数：
                            </td>
	                        <td>
                                <asp:TextBox ID="txtOnClick" CssClass="short_input" runat="server" Text="0"></asp:TextBox>
                            </td>
	                        <td>
                                <asp:Panel ID="txtOnClickTip" runat="server">
                                </asp:Panel>
                            </td>
                        </tr>
                        <tr>
	                        <td class="form_table_input_info">是否允许评论：
                            </td>
	                        <td>
                                <asp:RadioButtonList ID="rblIsAllowComment" runat="server" RepeatDirection="Horizontal">
                                    <asp:ListItem Value="1" Text="允许" Selected="True"></asp:ListItem>
                                    <asp:ListItem Value="0" Text="不允许"></asp:ListItem>
                               </asp:RadioButtonList>
                            </td>
	                        <td>
                                <div class="msgNormal">该商品是否允许用户进行评论</div>
                            </td>
                        </tr>
                     </table>
                </div>
                <!--介绍及图片-->
                <div id="tab2" style="display:none">
                    <table  class="form_table_input" border="0" width="100%" cellspacing="0" cellpadding="0">
                         <tr>
                             <td class="form_table_input_info">商品原图：</td>
                             <td>
                                 <asp:FileUpload ID="fuPic" runat="server" />
                                 <asp:CheckBox ID="cbBreviary" runat="server" onclick="chengeBreviary();" />自动生成缩略图
                             </td>
                             <td>
                                 <div class="msgNormal">上传商品原图将在前台商品详细页显示</div>
                             </td>
                         </tr>
                         <tr>
	                        <td class="form_table_input_info">商品缩略图：</td>
	                        <td>
	                            <asp:FileUpload ID="fuSmallImages" runat="server" />
                            </td>
	                        <td><div class="msgNormal">上传100px*100px大小的图,前台显示为最佳效果,如自动生成缩略图请在系统设置下的缩略图参数配置下进行配置缩略图的大小</div></td>
                        </tr>
                        <tr>
	                        <td class="form_table_input_info">商品简介：</td>
	                        <td>
                                <asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" onblur="changeDescription()" MaxLength="1500" Height="100px" Width="323px"></asp:TextBox>
                            </td>
	                        <td>
                                <asp:Panel ID="txtDescriptionTip" runat="server">
                                </asp:Panel>
                            </td>
                        </tr>
                        <tr>
	                        <td class="form_table_input_info">详细介绍：</td>
	                        <td colspan="2">
	                            <div class="msgNormal">输入信息对商品进行详细介绍</div>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                <FCKeditorV2:FCKeditor ID="txtContent" runat="server" Height="450px" BasePath="~/controls/fckeditor/">
                                </FCKeditorV2:FCKeditor>
                            </td>
                        </tr>
                    </table>
                </div>
                <!--商品相册-->
                <div id="tab3" style="display:none">
                    <table  class="form_table_input" border="0" width="100%" cellspacing="0" cellpadding="0">
                         <tr>
                             <td colspan="2"><input onclick="addFile()" type="button" value="增加相片" /></td>
                         </tr>
                         <tr>
                             <td>
                                 <input id="File2" type="file" name="File" runat="server" />
                             </td>
                             <td>
                                描述：<input type="text" name="description" maxlength="200" />
                             </td>
                         </tr>
                         
                    </table> <div id="MyFile"></div>
                    <div id="divAlbum">
                        <table  class="form_table_input" border="0" width="100%" cellspacing="0" cellpadding="0">
                             <tr>
                                 <asp:Literal ID="litaAlbum" runat="server"></asp:Literal>
                             </tr>
                        </table>
                   </div>
                </div>
                <!--扩展属性-->
                <div id="tab4" style="display:none">
                    <div id="divProperty"><asp:Literal ID="ltaProperty" runat="server"></asp:Literal></div>
                </div>
                <!--相关商品-->
                <div id="tab5" style="display:none">
                    <table   class="form_table_input" border="0" width="100%" cellspacing="0" cellpadding="0">
                        <tr>
                            <td class="fullTd" colspan="3">
                                搜索商品的关联商品：
                                <input type="text" id="txtRelatingProName" />
                                &nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value="搜索商品" onclick="CheckProduct(document.all.txtRelatingProName.value);" />
                                <div class="Description">
                                    在前台商品的详细页上将显示您当前所添加的关联商品，建议不多于10个</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 40%; text-align: right">
                                <div id="divRelatingProID">
                                    <select size="14" id="selPro_RelatingProID" style="width: 98%">
                                    </select>
                                </div>
                            </td>
                            <td style="width: 20%; text-align: center; vertical-align: super">
                                <input type="button" style="width: 60%" value=">>>" onclick="AddAllItem('selPro_RelatingProID','selPro_RelatingProIDSelect');" />
                                <br />
                                <br />
                                <br />
                                <input type="button" style="width: 60%" value=">" onclick="AddItem('selPro_RelatingProID','selPro_RelatingProIDSelect');" />
                                <br />
                                <br />
                                <br />
                                <input type="button" style="width: 60%" value="<<<" onclick="DelAllItem('selPro_RelatingProIDSelect');" />
                                <br />
                                <br />
                                <br />
                                <input type="button" style="width: 60%" value="<" onclick="DelItem('selPro_RelatingProIDSelect');" />
                            </td>
                            <td style="width: 40%; text-align: left">
                                <div class="Description" id="divPro_RelatingProIDSelected">
                                   <asp:Literal ID="ltRelatingProductSelected" runat="server"></asp:Literal>
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
                <!--相关文章-->
                <div id="tab6" style="display:none">
                    <table   class="form_table_input" border="0" width="100%" cellspacing="0" cellpadding="0">
                        <tr>
                            <td class="fullTd" colspan="3">
                                搜索文章的关联文章：
                                <input type="text" id="txtArticleTitle" />
                                &nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value="搜索文章" onclick="CheckArticle(document.all.txtArticleTitle.value);" />
                                <div class="Description">
                                    在前台商品的详细页上将显示您当前所添加的关联文章，建议不多于10个</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 40%; text-align: right">
                                <div id="divRelatingArticldeID">
                                    <select size="14" style="width: 98%">
                                    </select>
                                </div>
                            </td>
                            <td style="width: 20%; text-align: center; vertical-align: super">
                                <input type="button" style="width: 60%" value=">>>" onclick="AddAllItem('selPro_RelatingArtID','selPro_RelatingArtIDSelect');" />
                                <br />
                                <br />
                                <br />
                                <input type="button" style="width: 60%" value=">" onclick="AddItem('selPro_RelatingArtID','selPro_RelatingArtIDSelect');" />
                                <br />
                                <br />
                                <br />
                                <input type="button" style="width: 60%" value="<<<" onclick="DelAllItem('selPro_RelatingArtIDSelect');" />
                                <br />
                                <br />
                                <br />
                                <input type="button" style="width: 60%" value="<" onclick="DelItem('selPro_RelatingArtIDSelect');" />
                            </td>
                            <td style="width: 40%; text-align: left">
                                <div id="divPro_RelatingArtIDSelect">
                                    <asp:Literal ID="ltRelatingArticle" runat="server"></asp:Literal>
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
                <!--搜索优化-->
                <div id="tab7" style="display:none">
                    <table  class="form_table_input" border="0" width="100%" cellspacing="0" cellpadding="0">
                         <tr>
                             <td class="form_table_input_info">优化标题：</td>
                             <td>
                                 <asp:TextBox ID="txtOptimizationtitle" runat="server" MaxLength="150"></asp:TextBox>
                             </td>
                             <td><div class="msgNormal">用于在商品详细页详细页的页头上进行显示的标题信息（有助于SEO优化），不多于150字</div></td>
                         </tr>
                         <tr>
                             <td class="form_table_input_info">优化关键字：</td>
                             <td>
                                 <asp:TextBox ID="txtOptimizationKey" runat="server" MaxLength="100"></asp:TextBox>
                             </td>
                             <td><div class="msgNormal">用于在商品详细页详细页的页头上进行显示的关键字（有助于SEO优化），不多于100字</div></td>
                         </tr>
                         <tr>
                             <td class="form_table_input_info">优化描述：</td>
                             <td>
                                 <asp:TextBox ID="txtOptimizationDescription" TextMode="MultiLine" runat="server" MaxLength="250"></asp:TextBox>
                             </td>
                             <td><div class="msgNormal">用于在商品详细页详细页的页头上进行显示的描述信息（有助于SEO优化），不多于250字</div></td>
                         </tr>
                    </table>
                </div>
    </td>
        </tr>
    </table>
</asp:Content>
